package com.clothing.service;

import com.clothing.entity.BlackList;
import com.clothing.utils.page.Page;
import com.clothing.utils.page.Pageable;

/**
 * @ClassName: BlackListService
 * @Description: Service
 * @author: Charles
 * @date: 2018/07/12 09:19
 * @version: 1.0
 */
public interface BlackListService extends BaseService<BlackList, Long> {
    /**
     * 用户黑名单
     *
     * @param userId
     * @return
     */
    BlackList findOne(Long userId);

    /**
     * 黑名单列表
     *
     * @param nickname
     * @param pageable
     * @return
     */
    Page<BlackList> findPage(String nickname, Pageable pageable);
}
